package demo04;

import java.util.function.Consumer;

public class Demo02MethodReference {
    public static void main(String[] args) {
        printString("小飞棍来咯", System.out::println);
    }

    public static void printString(String string, Consumer<String> consumer) {
        consumer.accept(string);
    }
}
